package com.cloudkinto.bo.order.shelf;

import com.cloudkinto.bo.common.BaseQueryBo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @author long
 */
@Data
public class OrderInputShelfQueryBo extends BaseQueryBo {
    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("入库类型")
    private Integer inboundType;

    @ApiModelProperty("客户ids")
    private List<Long> companyIds;

    @ApiModelProperty("入库单号")
    private List<String> sourceNoList;

    @ApiModelProperty("上架单号")
    private List<String> pasNoList;

    @ApiModelProperty("时间类型")
    private String timeType;

    @ApiModelProperty("开始时间")
    private String startTime;

    @ApiModelProperty("结束时间")
    private String endTime;

    public String getStartTime() {
        if (StringUtils.isNotBlank(startTime)) {
            return startTime + " 00:00:00";
        }
        return startTime;
    }

    public String getEndTime() {
        if (StringUtils.isNotBlank(endTime)) {
            return endTime + " 23:59:59";
        }
        return endTime;
    }
}
